forNumber

public static KeyCode forNumber(int value)

Creates a KeyCode corresponding to the given numeric value.